#include "VertexDeclarationDX9.h"
#include "VertexDeclarationDX10.h"

CVertexDeclaration *CVertexDeclaration::CreateVertexDeclaration( )
{
    switch (g_ApiVersion)
    {
    case V_D3D9:
        return new CVertexDeclarationDX9;
    case V_D3D10:
        return new CVertexDeclarationDX10;
    }

    return NULL;
}